package com.yonyou.cyxdms.sysAuth.service.dto.notification;

import com.yonyou.cyx.function.utils.bean.BeanMapperUtil;
import com.yonyou.cyxdms.framework.bean.dto.base.DMSBaseDTO;
import com.yonyou.cyx.framework.bean.entity.base.BasePO;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yonyou.cyx.function.utils.jsonserializer.localdatetime.JsonLocalDateTimeDeserializer;
import com.yonyou.cyx.function.utils.jsonserializer.localdatetime.JsonLocalDateTimeSerializer;

/**
 * <p>
 * 通知通告之经销商
 * </p>
 *
 * @author chengliang
 * @since 2019-09-24
 */

public class NotificationDealerDTO extends DMSBaseDTO implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 通知通告之经销商ID
	 */
	private Long notificationDealerId;


	/**
	 * 通知通告ID
	 */
	private Long notificationId;


	/**
	 * 经销商ID
	 */
	private Long dealerId;


	/**
	 * 经销商名称
	 */
	private String dealerName;


	/**
	 * 所有者代码(经销商代码)
	 */
	private String ownerCode;


	/**
	 * 经销商公司ID
	 */
	private Long dealerCompanyId;


	/**
	 * 是否删除
	 */
	private Boolean isDeleted;



	public NotificationDealerDTO() {
		super();
	}


	public Long getNotificationDealerId() {
		return notificationDealerId;
	}

	public void setNotificationDealerId(Long notificationDealerId) {
		this.notificationDealerId = notificationDealerId;
	}

	public Long getNotificationId() {
		return notificationId;
	}

	public void setNotificationId(Long notificationId) {
		this.notificationId = notificationId;
	}

	public Long getDealerId() {
		return dealerId;
	}

	public void setDealerId(Long dealerId) {
		this.dealerId = dealerId;
	}

	public String getDealerName() {
		return dealerName;
	}

	public void setDealerName(String dealerName) {
		this.dealerName = dealerName;
	}

	public String getOwnerCode() {
		return ownerCode;
	}

	public void setOwnerCode(String ownerCode) {
		this.ownerCode = ownerCode;
	}

	public Long getDealerCompanyId() {
		return dealerCompanyId;
	}

	public void setDealerCompanyId(Long dealerCompanyId) {
		this.dealerCompanyId = dealerCompanyId;
	}

	public Boolean getDeleted() {
		return isDeleted;
	}

	public void setDeleted(Boolean isDeleted) {
		this.isDeleted = isDeleted;
	}

	@Override
	public String toString() {
		return "NotificationDealerDTO{" +
		"notificationDealerId=" + notificationDealerId +
		", notificationId=" + notificationId +
		", dealerId=" + dealerId +
		", dealerName=" + dealerName +
		", ownerCode=" + ownerCode +
		", dealerCompanyId=" + dealerCompanyId +
		", isDeleted=" + isDeleted +
		"}";
	}
	/**
	 * 将DTO 转换为PO
	 * //对某个对象属性进行赋值
	 * //BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
	 * @param poClass dto 需要转换的dto
	 * @author chengliang
	 * @since 2019-09-24
	 */
	@Override
	public <T extends BasePO> T transDtoToPo(Class<T> poClass) {
		return super.transDtoToPo(poClass);
	}

	/**
	 * 将DTO 转换为PO
	 * BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
	 * @param po 需要转换的对象
	 * @author chengliang
	 * @since 2019-09-24
	 */
	public <T extends BasePO> void transDtoToPo(T po) {
		BeanMapperUtil.copyProperties(this, po, "notificationDealerId");
	}

}
